{extend name="layout/read" /}
{block name="table"}

<table class="table">
	<thead>
		<tr>
			<th>字段</th>
			<th>值</th>  
		</tr>
	</thead>
	<tbody>

	<tr>
		<td>{$tables["fields"]["id"]["name"]}</td>
		<td>{$info["id"]}</td>
	</tr>
	<tr>
		<td>{$tables["fields"]["classs_id"]["name"]}</td>
		<td>
			{$info["classs"]["name"]}
		</td>
	</tr>

	<tr>
		<td>{$tables["fields"]["title"]["name"]}</td>
		<td>{$info["title"]}</td>
	</tr>

	<tr>
		<td>{$tables["fields"]["url"]["name"]}</td>
		<td>{$info["url"]}</td>
	</tr>

	<tr>
		<td>{$tables["fields"]["target"]["name"]}</td>
		<td>{$info["target"]}</td>
	</tr>

	<tr>
		<td>{$tables["fields"]["images"]["name"]}</td>
		<td>
			{if !empty($info["images"])}
				<img src="{$info["images"]}" width="100">
			{/if}
		</td>
	</tr>

	<tr>
		<td>{$tables["fields"]["status"]["name"]}</td>
		<td>{$info["status"]}</td>
	</tr>

	<tr>
		<td>{$tables["fields"]["recommend"]["name"]}</td>
		<td>{$info["recommend"]}</td>
	</tr>

	<tr>
		<td>{$tables["fields"]["topping"]["name"]}</td>
		<td>{$info["topping"]}</td>
	</tr>

	<tr>
		<td>{$tables["fields"]["sort_time"]["name"]}</td>
		<td>{$info["sort_time"]}</td>
	</tr>

	<tr>
		<td>{$tables["fields"]["create_time"]["name"]}</td>
		<td>{$info["create_time"]}</td>
	</tr>

	<tr>
		<td>{$tables["fields"]["update_time"]["name"]}</td>
		<td>{$info["update_time"]}</td>
	</tr>

	<tr>
		<td>{$tables["fields"]["content"]["name"]}</td>
		<td>
			{:htmlspecialchars_decode($info["content"])}
		</td>
	</tr>

	<tr>
		<td colspan="2">
			{if checkurl($now_route["controller"]."/edit")}
			<a href="{:url("edit",array("id"=>$info["id"]))}" class="btn btn-primary" title="修改">
				<i class="fa fa-fw fa-lg fa-check-circle"></i>修改
			</a>
			{/if}
			{if checkurl($now_route["controller"]."/delete")}
			<a href="javascript:;" data-href="{:url("delete",array("id"=>$info["id"]))}" class="btn btn-secondary delete" title="删除">
				<i class="fa fa-fw fa-lg fa-times-circle"></i>删除
			</a>
			{/if}
		</td>
	</tr>
	</tbody>
</table>

{/block}
